package cn.htsyb.synergy.tester.report.xdic;

import java.io.Serializable;

public enum TestStatus implements Serializable {
    PASS,
    FAIL,
    FATAL,
    ERROR,
    WARNING,
    INFO,
    SKIP,
    UNKNOWN;

    @Override
    public String toString() {
        switch (this) {
            case PASS:
                return "pass";
            case FAIL:
                return "fail";
            case FATAL:
                return "fatal";
            case ERROR:
                return "error";
            case WARNING:
                return "warning";
            case INFO:
                return "info";
            case SKIP:
                return "skip";
            default:
                return "unknown";
        }
    }
}

